package com.sanyang.pda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sanyang.pda.bean.PalletStatisticsBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;
import com.wangshen.projectbase.R;

import java.util.List;

public class PalletStatisticsAdapter extends BaseAdapter<PalletStatisticsBean> {
    public PalletStatisticsAdapter(int layoutResId, @Nullable List<PalletStatisticsBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PalletStatisticsBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_articleName,item.getArticleName());
        helper.setText(R.id.tv_planInboundNum,item.getPlanInboundNum()+"");
        helper.setText(R.id.tv_alreadyInboundNum,item.getAlreadyInboundNum()+"");
        helper.setText(R.id.tv_planPalletizeNum,item.getPlanPalletizeNum()+"");
        helper.setText(R.id.tv_alreadyPalletizeNum,item.getAlreadyPalletizeNum()+"");
    }
}
